package lab02.test06;

import java.util.Scanner;

/**
 * Created by 123 on 2017/10/15.
 */
public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        Triangle one = new Triangle();//创建一个新的三角形类
        one.getLength(sc.nextDouble(), sc.nextDouble(), sc.nextDouble());//对三角形三边赋值

        one.judge();//判断三边是否能围城一个三角形
        System.out.println("周长" + one.getPerimeter() + "面积" + one.getArea());//打印三角形周长和面积

        Ladder two = new Ladder();//新建一个矩形的类

        two.high = 10;
        two.followLength = 10;
        two.aboveLength = 10;

        System.out.println("梯形面积为" + two.getArea());


        Circle three = new Circle();//新建一个圆形的类
        three.rahius = 4.00;

        System.out.println("圆周长为" + three.perimeter() + "圆面积为" + three.area());

    }
}
